<?php
$this->Js->JqueryEngine->jQueryObject = '$j';
echo $this->Html->scriptBlock(
    'window.location.assign("'.$this->Html->url(array('controller'=>'Ventasproductos','action' => 'transferencias',$idsucursal), true).'")'
);
?>